<?php
class IntegranteFumtur extends Zend_Db_Table
{
    protected $_name = 'integrante_fumtur';
    protected $_primary = 'id_integrante_fumtur';

    public function load($id){
		$db = Zend_Registry::get('db');
		$sql = "SELECT ift.id_integrante_fumtur, ift.id_fumtur, ift.id_fisica
		          FROM integrante_fumtur ift
		         WHERE ift.id_integrante_fumtur = " . $id;
		$result = $db->query($sql)->fetch();
		$this->id_integrante_fumtur = $result['id_integrante_fumtur'];
		$this->id_fumtur = $result['id_fumtur'];
		$this->id_evento = $result['id_fisica'];
    }

 }
